﻿@model FCNS.ERP.Models.ErpCompany

@{
    ViewBag.Title = "门店信息";
    Layout = "~/Views/Shared/_Layout.cshtml";
} 
@Scripts.Render("~/bundles/Tabs")
@Styles.Render("~/Content/TabsCss")
<script>
    $(function () {
        $("#tabs").tabs();
    });
</script>

<h2>@ViewBag.Title</h2> 

@using (Html.BeginForm("CompanyEdit", "System", FormMethod.Post, new { enctype = "multipart/form-data" }))
{
    @Html.AntiForgeryToken()

<div class="form-horizontal">
    <hr />
    @Html.ValidationSummary(true, "", new { @class = "text-danger" })
    @Html.HiddenFor(model => model.Id)
    @Html.HiddenFor(model => model.Enable)
    @Html.HiddenFor(model => model.Sms)
    @Html.HiddenFor(model => model.ImgUrl)

    <div class="form-group">
        &nbsp&nbsp
        @Html.LabelFor(model => model.IsJxc)
        @Html.EditorFor(model => model.IsJxc, new { htmlAttributes = new { @onclick = "return false;" } })

        @Html.LabelFor(model => model.IsHouse)
        @Html.EditorFor(model => model.IsHouse, new { htmlAttributes = new { @onclick = "return false;" } })

        @Html.LabelFor(model => model.IsFood)
        @Html.EditorFor(model => model.IsFood, new { htmlAttributes = new { @donclick = "return false;" } })

        @Html.LabelFor(model => model.IsDinner)
        @Html.EditorFor(model => model.IsDinner, new { htmlAttributes = new { @onclick = "return false;" } })

        @Html.LabelFor(model => model.IsVip)
        @Html.EditorFor(model => model.IsVip, new { htmlAttributes = new { @onclick = "return false;" } })

        @Html.LabelFor(model => model.IsPx)
        @Html.EditorFor(model => model.IsPx, new { htmlAttributes = new { @onclick = "return false;" } })
    </div>

    <input type="submit" value="保存" class="btn btn-default" />&nbsp;&nbsp;更改参数配置后请注销重新登录
    <p></p>
    <div id="tabs">
        <ul>
            <li><a href="#tabs-1">摘要</a></li>
            <li><a href="#tabs-2">常规</a></li>
            <li><a href="#tabs-3">进销存</a></li>
            <li><a href="#tabs-4">餐饮</a></li>
            <li><a href="#tabs-5">公寓</a></li>
        </ul>

        <div id="tabs-1">
            <div class="form-group">
                @Html.LabelFor(model => model.EnterpriseCode, htmlAttributes: new { @class = "control-label col-md-2" })
                <div class="col-md-10">
                    @Html.EditorFor(model => model.EnterpriseCode, new { htmlAttributes = new { @class = "form-control", @readonly = "readonly" } })
                    @Html.ValidationMessageFor(model => model.EnterpriseCode, "", new { @class = "text-danger" })
                </div>
            </div>

            <div class="form-group">
                @Html.LabelFor(model => model.Key, htmlAttributes: new { @class = "control-label col-md-2" })
                <div class="col-md-10">
                    @Html.EditorFor(model => model.Key, new { htmlAttributes = new { @class = "form-control", @readonly = "readonly" } })
                    @Html.ValidationMessageFor(model => model.Key, "", new { @class = "text-danger" })
                </div>
            </div>

            <div class="form-group">
                @Html.LabelFor(model => model.Name, htmlAttributes: new { @class = "control-label col-md-2" })
                <div class="col-md-10">
                    @Html.EditorFor(model => model.Name, new { htmlAttributes = new { @class = "form-control", @readonly = "readonly" } })
                    @Html.ValidationMessageFor(model => model.Name, "", new { @class = "text-danger" })
                </div>
            </div>

            <div class="form-group">
                @Html.LabelFor(model => model.Sms, htmlAttributes: new { @class = "control-label col-md-2" })
                <div class="col-md-10">
                    @Html.EditorFor(model => model.Sms, new { htmlAttributes = new { @class = "form-control", @readonly = "readonly" } })
                    @Html.ValidationMessageFor(model => model.Sms, "", new { @class = "text-danger" })
                </div>
            </div>

            <div class="form-group">
                <label class="control-label col-md-2">微信收款二维码</label>
                <div class="col-md-10">
                    <input type="file" name="wx" accept="image/png,image/jpg" />
                </div>
            </div>

            <div class="form-group">
                <label class="control-label col-md-2">支付宝收款二维码</label>
                <div class="col-md-10">
                    <input type="file" name="zfb" accept="image/png,image/jpg" />
                </div>
            </div>
        </div>

        <div id="tabs-2">
            <div class="form-group">
                @Html.LabelFor(model => model.Address, htmlAttributes: new { @class = "control-label col-md-2" })
                <div class="col-md-10">
                    @Html.EditorFor(model => model.Address, new { htmlAttributes = new { @class = "form-control", @Min = 1, @Max = 31 } })
                    @Html.ValidationMessageFor(model => model.Address, "", new { @class = "text-danger" })
                </div>
            </div>

            <div class="form-group">
                @Html.LabelFor(model => model.Tel, htmlAttributes: new { @class = "control-label col-md-2" })
                <div class="col-md-10">
                    @Html.EditorFor(model => model.Tel, new { htmlAttributes = new { @class = "form-control", @Min = 1, @Max = 31 } })
                    @Html.ValidationMessageFor(model => model.Tel, "", new { @class = "text-danger" })
                </div>
            </div>

            <div class="form-group">
                @Html.LabelFor(model => model.Fax, htmlAttributes: new { @class = "control-label col-md-2" })
                <div class="col-md-10">
                    @Html.EditorFor(model => model.Fax, new { htmlAttributes = new { @class = "form-control", @Min = 1, @Max = 31 } })
                    @Html.ValidationMessageFor(model => model.Fax, "", new { @class = "text-danger" })
                </div>
            </div>

            <div class="form-group">
                @Html.LabelFor(model => model.Email, htmlAttributes: new { @class = "control-label col-md-2" })
                <div class="col-md-10">
                    @Html.EditorFor(model => model.Email, new { htmlAttributes = new { @class = "form-control", @Min = 1, @Max = 31 } })
                    @Html.ValidationMessageFor(model => model.Email, "", new { @class = "text-danger" })
                </div>
            </div>

            <div class="form-group">
                @Html.LabelFor(model => model.AutoInsertUnit, htmlAttributes: new { @class = "control-label col-md-2" })
                <div class="col-md-10">
                    <div class="checkbox">
                        @Html.CheckBoxFor(model => model.AutoInsertUnit, new { htmlAttributes = new { @class = "form-control" } })
                        @Html.ValidationMessageFor(model => model.AutoInsertUnit, "", new { @class = "text-danger" })
                    </div>
                </div>
            </div>
        </div>

        <div id="tabs-3">
            <div class="form-group">
                @Html.LabelFor(model => model.NegativeInventorySales, htmlAttributes: new { @class = "control-label col-md-2" })
                <div class="col-md-10">
                    <div class="checkbox">
                        @Html.CheckBoxFor(model => model.NegativeInventorySales, new { htmlAttributes = new { @class = "form-control" } })
                        @Html.ValidationMessageFor(model => model.NegativeInventorySales, "", new { @class = "text-danger" })
                    </div>
                </div>
            </div>

            <div class="form-group">
                @Html.LabelFor(model => model.ModifySellingPrice, htmlAttributes: new { @class = "control-label col-md-2" })
                <div class="col-md-10">
                    <div class="checkbox">
                        @Html.CheckBoxFor(model => model.ModifySellingPrice, new { htmlAttributes = new { @class = "form-control" } })
                        @Html.ValidationMessageFor(model => model.ModifySellingPrice, "", new { @class = "text-danger" })
                    </div>
                </div>
            </div>

            <div class="form-group">
                @Html.LabelFor(model => model.RentTime, htmlAttributes: new { @class = "control-label col-md-2" })
                <div class="col-md-10">
                    @Html.EditorFor(model => model.RentTime, new { htmlAttributes = new { @class = "form-control" } })
                    @Html.ValidationMessageFor(model => model.RentTime, "", new { @class = "text-danger" })
                </div>
            </div>

        </div>

        <div id="tabs-4">
            <div class="form-group">
                @Html.LabelFor(model => model.RefreshSecond, htmlAttributes: new { @class = "control-label col-md-2" })
                <div class="col-md-10">
                    @Html.EditorFor(model => model.RefreshSecond, new { htmlAttributes = new { @class = "form-control" } })
                    @Html.ValidationMessageFor(model => model.RefreshSecond, "", new { @class = "text-danger" })
                </div>
            </div>

            <div class="form-group">
                @Html.LabelFor(model => model.DinnerPlanDay, htmlAttributes: new { @class = "control-label col-md-2" })
                <div class="col-md-10">
                    @Html.EditorFor(model => model.DinnerPlanDay, new { htmlAttributes = new { @class = "form-control" } })
                    @Html.ValidationMessageFor(model => model.DinnerPlanDay, "", new { @class = "text-danger" })
                </div>
            </div>
        </div>

        <div id="tabs-5">
            <div class="form-group">
                @Html.LabelFor(model => model.CostDay, htmlAttributes: new { @class = "control-label col-md-2" })
                <div class="col-md-10">
                    @Html.EditorFor(model => model.CostDay, new { htmlAttributes = new { @class = "form-control", @Min = 1, @Max = 31 } })
                    @Html.ValidationMessageFor(model => model.CostDay, "", new { @class = "text-danger" })
                </div>
            </div>
        </div>
    </div>

</div>
}
